/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TUILayer;

/**
 *
 * @author Martin
 */
import ModelLayer.*;
import ControlLayer.*;
import java.util.Scanner;

public class UdlejningUI {
    
private Scanner reader;
//private AdressebogCtrl adressebogCtrl;
    
    public UdlejningUI(){
    reader = new Scanner(System.in);
    //adressebogCtrl = new AdressebogCtrl();
    }
    
    /**
     * Calls a method in order to generate menu
     */
    public void start()
    {
        udlejningMenu();
    }
    
    /**
     * Calls the address menu
     */
    public void udlejningMenu()
    {
       boolean exit = false;
       while(!exit)//that is: while exit is false
       {
          int choise = udskrivUdlejningMenu(); 
          switch (choise)
          {   
              case 1: //getPerson();
                      break;
              case 2: //createPerson();
                      break;
              case 3: //deletePerson();
                      break;
              case 4: //updateMenu();
                      break;
              case 5: //listAllPersons();
                      break;
              default: exit = true;
                      break;
          }
       }
    }
    
    /**
     * Generates the address menu
     */
    public int udskrivUdlejningMenu()
    {      // makes an object keyboard to read input from the screen
          
            System.out.println(" *** Lager Menu ***");
            System.out.println(" (1) Opret Varebeskrivelse");
            System.out.println(" (2) Tilføj Vare");
            System.out.println(" (3) Opdater Kundeinfo");
            System.out.println(" (4) Update person");
            System.out.println(" (5) List all persons");
            System.out.println(" (6) Return");
            System.out.print("\n Make your choice: ");
            
            int choise = reader.nextInt();
            //System.out.println("\f");
            return choise;
    }
    
//    private void skrivMenu()
//    {
//        System.out.println("**Kunder**");
//        System.out.println("1  = Opret kunde");
//        System.out.println("2  = Rediger kunde");
//        System.out.println("3  = Hovedmenuen");
//    }
    
}